package com.yaoxiaowen.project2.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.yaoxiaowen.project2.util.log.debug.LogInterface;
import com.yaoxiaowen.project2.util.log.debug.LogTool;
import com.yaoxiaowen.project2.util.log.debug.ShowInterface;

import butterknife.ButterKnife;


public abstract class BaseActivity extends AppCompatActivity implements View.OnClickListener{

    protected static LogInterface mLog = LogTool.getLogType();
    protected static ShowInterface mShow;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setTheme(android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
        super.onCreate(savedInstanceState);

        setContentView(getLayoutId());
        ButterKnife.bind(this);
        mShow = LogTool.getShowType(this);
        initData();
        initView();
        initListener();
    }

    abstract protected int getLayoutId();
    abstract protected void initData();
    abstract protected void initView();
    abstract protected void initListener();

    @Override
    public void onClick(View v) {

    }
}
